package com.sgz.androidlib.dialog.sample;

import android.content.Context;

import com.android.sgzcommon.dialog.BaseTextListDialog;
import com.sgz.androidlib.entity.TextListEntity;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author sgz
 * @date 2020/6/30
 */
public class TestBaseTextListDialog extends BaseTextListDialog<TextListEntity> {

    private List<TextListEntity> mEntityList;

    @Override
    protected void loadTextList(Map<String, String> data, OnLoadListResponse response) {
        response.onStart();
        response.onSuccess(mEntityList);
    }

    public TestBaseTextListDialog(Context context) {
        super(context);
        // setTitleText("列表");
        mEntityList = new ArrayList<>();
        mEntityList.add(new TextListEntity("圣诞福利SDK"));
        mEntityList.add(new TextListEntity("施蒂利克蝶恋蜂狂"));
        mEntityList.add(new TextListEntity("收到了福克斯劳动法看"));
        mEntityList.add(new TextListEntity("收到反馈到付款了"));
        mEntityList.add(new TextListEntity("适得府君书打了个i"));
        mEntityList.add(new TextListEntity("是的弗兰克"));
        mEntityList.add(new TextListEntity("时代峰峻蝶恋蜂狂"));
        mEntityList.add(new TextListEntity("水电费京东方"));
        mEntityList.add(new TextListEntity("深地方的首付款"));
        mEntityList.add(new TextListEntity("深刻的反思了的"));
    }
}
